const app = getApp();

var top = app.globalData.navTop
var height = app.globalData.navHeight
console.log("####")
console.log(top)

Component({
  options: {
    addGlobalClass: true,

  },
  /**
   * 组件的属性列表
   */
  properties: {
    pageName: String,
    showNav: String ,
    showHome: String,
    setHeight: String,
    setHeight:String
  },

  /**
   * 组件的初始数据
   */
  data: {

  },
  lifetimes: {
    attached: function () {
      this.setData({
        navH: app.globalData.navHeight
      })

      this.setData({
        navTop: app.globalData.navTop
      })
    }
  },
  /**
   * 组件的方法列表
   */
  methods: {
    navBack: function () {
      wx.navigateBack({
        delta: 1
      })
    },
    //回主页
    toIndex: function () {
    console.log("aaaaaaaaaaaaa")
      wx.reLaunch({
        url: '/pages/index/index',
      })
    },
  }
})